package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PReturnMaterialExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PReturnMaterialExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRtmIdIsNull() {
            addCriterion("rtm_id is null");
            return (Criteria) this;
        }

        public Criteria andRtmIdIsNotNull() {
            addCriterion("rtm_id is not null");
            return (Criteria) this;
        }

        public Criteria andRtmIdEqualTo(Integer value) {
            addCriterion("rtm_id =", value, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdNotEqualTo(Integer value) {
            addCriterion("rtm_id <>", value, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdGreaterThan(Integer value) {
            addCriterion("rtm_id >", value, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtm_id >=", value, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdLessThan(Integer value) {
            addCriterion("rtm_id <", value, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdLessThanOrEqualTo(Integer value) {
            addCriterion("rtm_id <=", value, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdIn(List<Integer> values) {
            addCriterion("rtm_id in", values, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdNotIn(List<Integer> values) {
            addCriterion("rtm_id not in", values, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdBetween(Integer value1, Integer value2) {
            addCriterion("rtm_id between", value1, value2, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rtm_id not between", value1, value2, "rtmId");
            return (Criteria) this;
        }

        public Criteria andRtmDateIsNull() {
            addCriterion("rtm_date is null");
            return (Criteria) this;
        }

        public Criteria andRtmDateIsNotNull() {
            addCriterion("rtm_date is not null");
            return (Criteria) this;
        }

        public Criteria andRtmDateEqualTo(Date value) {
            addCriterion("rtm_date =", value, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateNotEqualTo(Date value) {
            addCriterion("rtm_date <>", value, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateGreaterThan(Date value) {
            addCriterion("rtm_date >", value, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateGreaterThanOrEqualTo(Date value) {
            addCriterion("rtm_date >=", value, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateLessThan(Date value) {
            addCriterion("rtm_date <", value, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateLessThanOrEqualTo(Date value) {
            addCriterion("rtm_date <=", value, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateIn(List<Date> values) {
            addCriterion("rtm_date in", values, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateNotIn(List<Date> values) {
            addCriterion("rtm_date not in", values, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateBetween(Date value1, Date value2) {
            addCriterion("rtm_date between", value1, value2, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmDateNotBetween(Date value1, Date value2) {
            addCriterion("rtm_date not between", value1, value2, "rtmDate");
            return (Criteria) this;
        }

        public Criteria andRtmAloserIsNull() {
            addCriterion("rtm_aloser is null");
            return (Criteria) this;
        }

        public Criteria andRtmAloserIsNotNull() {
            addCriterion("rtm_aloser is not null");
            return (Criteria) this;
        }

        public Criteria andRtmAloserEqualTo(String value) {
            addCriterion("rtm_aloser =", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserNotEqualTo(String value) {
            addCriterion("rtm_aloser <>", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserGreaterThan(String value) {
            addCriterion("rtm_aloser >", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserGreaterThanOrEqualTo(String value) {
            addCriterion("rtm_aloser >=", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserLessThan(String value) {
            addCriterion("rtm_aloser <", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserLessThanOrEqualTo(String value) {
            addCriterion("rtm_aloser <=", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserLike(String value) {
            addCriterion("rtm_aloser like", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserNotLike(String value) {
            addCriterion("rtm_aloser not like", value, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserIn(List<String> values) {
            addCriterion("rtm_aloser in", values, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserNotIn(List<String> values) {
            addCriterion("rtm_aloser not in", values, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserBetween(String value1, String value2) {
            addCriterion("rtm_aloser between", value1, value2, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAloserNotBetween(String value1, String value2) {
            addCriterion("rtm_aloser not between", value1, value2, "rtmAloser");
            return (Criteria) this;
        }

        public Criteria andRtmAccIsNull() {
            addCriterion("rtm_acc is null");
            return (Criteria) this;
        }

        public Criteria andRtmAccIsNotNull() {
            addCriterion("rtm_acc is not null");
            return (Criteria) this;
        }

        public Criteria andRtmAccEqualTo(String value) {
            addCriterion("rtm_acc =", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccNotEqualTo(String value) {
            addCriterion("rtm_acc <>", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccGreaterThan(String value) {
            addCriterion("rtm_acc >", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccGreaterThanOrEqualTo(String value) {
            addCriterion("rtm_acc >=", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccLessThan(String value) {
            addCriterion("rtm_acc <", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccLessThanOrEqualTo(String value) {
            addCriterion("rtm_acc <=", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccLike(String value) {
            addCriterion("rtm_acc like", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccNotLike(String value) {
            addCriterion("rtm_acc not like", value, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccIn(List<String> values) {
            addCriterion("rtm_acc in", values, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccNotIn(List<String> values) {
            addCriterion("rtm_acc not in", values, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccBetween(String value1, String value2) {
            addCriterion("rtm_acc between", value1, value2, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmAccNotBetween(String value1, String value2) {
            addCriterion("rtm_acc not between", value1, value2, "rtmAcc");
            return (Criteria) this;
        }

        public Criteria andRtmNumIsNull() {
            addCriterion("rtm_num is null");
            return (Criteria) this;
        }

        public Criteria andRtmNumIsNotNull() {
            addCriterion("rtm_num is not null");
            return (Criteria) this;
        }

        public Criteria andRtmNumEqualTo(Double value) {
            addCriterion("rtm_num =", value, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumNotEqualTo(Double value) {
            addCriterion("rtm_num <>", value, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumGreaterThan(Double value) {
            addCriterion("rtm_num >", value, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumGreaterThanOrEqualTo(Double value) {
            addCriterion("rtm_num >=", value, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumLessThan(Double value) {
            addCriterion("rtm_num <", value, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumLessThanOrEqualTo(Double value) {
            addCriterion("rtm_num <=", value, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumIn(List<Double> values) {
            addCriterion("rtm_num in", values, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumNotIn(List<Double> values) {
            addCriterion("rtm_num not in", values, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumBetween(Double value1, Double value2) {
            addCriterion("rtm_num between", value1, value2, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmNumNotBetween(Double value1, Double value2) {
            addCriterion("rtm_num not between", value1, value2, "rtmNum");
            return (Criteria) this;
        }

        public Criteria andRtmWeightIsNull() {
            addCriterion("rtm_weight is null");
            return (Criteria) this;
        }

        public Criteria andRtmWeightIsNotNull() {
            addCriterion("rtm_weight is not null");
            return (Criteria) this;
        }

        public Criteria andRtmWeightEqualTo(Double value) {
            addCriterion("rtm_weight =", value, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightNotEqualTo(Double value) {
            addCriterion("rtm_weight <>", value, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightGreaterThan(Double value) {
            addCriterion("rtm_weight >", value, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightGreaterThanOrEqualTo(Double value) {
            addCriterion("rtm_weight >=", value, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightLessThan(Double value) {
            addCriterion("rtm_weight <", value, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightLessThanOrEqualTo(Double value) {
            addCriterion("rtm_weight <=", value, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightIn(List<Double> values) {
            addCriterion("rtm_weight in", values, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightNotIn(List<Double> values) {
            addCriterion("rtm_weight not in", values, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightBetween(Double value1, Double value2) {
            addCriterion("rtm_weight between", value1, value2, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmWeightNotBetween(Double value1, Double value2) {
            addCriterion("rtm_weight not between", value1, value2, "rtmWeight");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeIsNull() {
            addCriterion("rtm_change_code is null");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeIsNotNull() {
            addCriterion("rtm_change_code is not null");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeEqualTo(String value) {
            addCriterion("rtm_change_code =", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeNotEqualTo(String value) {
            addCriterion("rtm_change_code <>", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeGreaterThan(String value) {
            addCriterion("rtm_change_code >", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeGreaterThanOrEqualTo(String value) {
            addCriterion("rtm_change_code >=", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeLessThan(String value) {
            addCriterion("rtm_change_code <", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeLessThanOrEqualTo(String value) {
            addCriterion("rtm_change_code <=", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeLike(String value) {
            addCriterion("rtm_change_code like", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeNotLike(String value) {
            addCriterion("rtm_change_code not like", value, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeIn(List<String> values) {
            addCriterion("rtm_change_code in", values, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeNotIn(List<String> values) {
            addCriterion("rtm_change_code not in", values, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeBetween(String value1, String value2) {
            addCriterion("rtm_change_code between", value1, value2, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmChangeCodeNotBetween(String value1, String value2) {
            addCriterion("rtm_change_code not between", value1, value2, "rtmChangeCode");
            return (Criteria) this;
        }

        public Criteria andRtmStatusIsNull() {
            addCriterion("rtm_status is null");
            return (Criteria) this;
        }

        public Criteria andRtmStatusIsNotNull() {
            addCriterion("rtm_status is not null");
            return (Criteria) this;
        }

        public Criteria andRtmStatusEqualTo(Integer value) {
            addCriterion("rtm_status =", value, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusNotEqualTo(Integer value) {
            addCriterion("rtm_status <>", value, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusGreaterThan(Integer value) {
            addCriterion("rtm_status >", value, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtm_status >=", value, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusLessThan(Integer value) {
            addCriterion("rtm_status <", value, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusLessThanOrEqualTo(Integer value) {
            addCriterion("rtm_status <=", value, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusIn(List<Integer> values) {
            addCriterion("rtm_status in", values, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusNotIn(List<Integer> values) {
            addCriterion("rtm_status not in", values, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusBetween(Integer value1, Integer value2) {
            addCriterion("rtm_status between", value1, value2, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("rtm_status not between", value1, value2, "rtmStatus");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdIsNull() {
            addCriterion("rtm_cag_id is null");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdIsNotNull() {
            addCriterion("rtm_cag_id is not null");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdEqualTo(Integer value) {
            addCriterion("rtm_cag_id =", value, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdNotEqualTo(Integer value) {
            addCriterion("rtm_cag_id <>", value, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdGreaterThan(Integer value) {
            addCriterion("rtm_cag_id >", value, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtm_cag_id >=", value, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdLessThan(Integer value) {
            addCriterion("rtm_cag_id <", value, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdLessThanOrEqualTo(Integer value) {
            addCriterion("rtm_cag_id <=", value, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdIn(List<Integer> values) {
            addCriterion("rtm_cag_id in", values, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdNotIn(List<Integer> values) {
            addCriterion("rtm_cag_id not in", values, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdBetween(Integer value1, Integer value2) {
            addCriterion("rtm_cag_id between", value1, value2, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCagIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rtm_cag_id not between", value1, value2, "rtmCagId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdIsNull() {
            addCriterion("rtm_cad_id is null");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdIsNotNull() {
            addCriterion("rtm_cad_id is not null");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdEqualTo(Integer value) {
            addCriterion("rtm_cad_id =", value, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdNotEqualTo(Integer value) {
            addCriterion("rtm_cad_id <>", value, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdGreaterThan(Integer value) {
            addCriterion("rtm_cad_id >", value, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtm_cad_id >=", value, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdLessThan(Integer value) {
            addCriterion("rtm_cad_id <", value, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdLessThanOrEqualTo(Integer value) {
            addCriterion("rtm_cad_id <=", value, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdIn(List<Integer> values) {
            addCriterion("rtm_cad_id in", values, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdNotIn(List<Integer> values) {
            addCriterion("rtm_cad_id not in", values, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdBetween(Integer value1, Integer value2) {
            addCriterion("rtm_cad_id between", value1, value2, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmCadIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rtm_cad_id not between", value1, value2, "rtmCadId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdIsNull() {
            addCriterion("rtm_ity_id is null");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdIsNotNull() {
            addCriterion("rtm_ity_id is not null");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdEqualTo(Integer value) {
            addCriterion("rtm_ity_id =", value, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdNotEqualTo(Integer value) {
            addCriterion("rtm_ity_id <>", value, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdGreaterThan(Integer value) {
            addCriterion("rtm_ity_id >", value, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtm_ity_id >=", value, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdLessThan(Integer value) {
            addCriterion("rtm_ity_id <", value, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdLessThanOrEqualTo(Integer value) {
            addCriterion("rtm_ity_id <=", value, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdIn(List<Integer> values) {
            addCriterion("rtm_ity_id in", values, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdNotIn(List<Integer> values) {
            addCriterion("rtm_ity_id not in", values, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdBetween(Integer value1, Integer value2) {
            addCriterion("rtm_ity_id between", value1, value2, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmItyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rtm_ity_id not between", value1, value2, "rtmItyId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdIsNull() {
            addCriterion("rtm_odr_id is null");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdIsNotNull() {
            addCriterion("rtm_odr_id is not null");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdEqualTo(Integer value) {
            addCriterion("rtm_odr_id =", value, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdNotEqualTo(Integer value) {
            addCriterion("rtm_odr_id <>", value, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdGreaterThan(Integer value) {
            addCriterion("rtm_odr_id >", value, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rtm_odr_id >=", value, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdLessThan(Integer value) {
            addCriterion("rtm_odr_id <", value, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdLessThanOrEqualTo(Integer value) {
            addCriterion("rtm_odr_id <=", value, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdIn(List<Integer> values) {
            addCriterion("rtm_odr_id in", values, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdNotIn(List<Integer> values) {
            addCriterion("rtm_odr_id not in", values, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdBetween(Integer value1, Integer value2) {
            addCriterion("rtm_odr_id between", value1, value2, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmOdrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rtm_odr_id not between", value1, value2, "rtmOdrId");
            return (Criteria) this;
        }

        public Criteria andRtmPartIsNull() {
            addCriterion("rtm_part is null");
            return (Criteria) this;
        }

        public Criteria andRtmPartIsNotNull() {
            addCriterion("rtm_part is not null");
            return (Criteria) this;
        }

        public Criteria andRtmPartEqualTo(String value) {
            addCriterion("rtm_part =", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartNotEqualTo(String value) {
            addCriterion("rtm_part <>", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartGreaterThan(String value) {
            addCriterion("rtm_part >", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartGreaterThanOrEqualTo(String value) {
            addCriterion("rtm_part >=", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartLessThan(String value) {
            addCriterion("rtm_part <", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartLessThanOrEqualTo(String value) {
            addCriterion("rtm_part <=", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartLike(String value) {
            addCriterion("rtm_part like", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartNotLike(String value) {
            addCriterion("rtm_part not like", value, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartIn(List<String> values) {
            addCriterion("rtm_part in", values, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartNotIn(List<String> values) {
            addCriterion("rtm_part not in", values, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartBetween(String value1, String value2) {
            addCriterion("rtm_part between", value1, value2, "rtmPart");
            return (Criteria) this;
        }

        public Criteria andRtmPartNotBetween(String value1, String value2) {
            addCriterion("rtm_part not between", value1, value2, "rtmPart");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}